package com.newasia.management.dal.user.persistence;


import com.newasia.management.dal.user.entitys.SysUser;
import com.newasia.management.dal.user.entitys.UserAndRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(SysUser record);

    int insertSelective(SysUser record);

    SysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(SysUser record);

    int updateByPrimaryKey(SysUser record);

    SysUser selectUserByName(String userName);

    int updateByUserName(SysUser record);

    List<UserAndRole> selectUserByRoleId(@Param("roleId")Long roleId,@Param("userName")String userName);

    Long selectUserIdByName(String userName);

    String checkMenuByUserId(Long userId);
}